﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="/Content/style.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="/Content/script.js" type="text/javascript"></script>
    @RenderSection("head", false)
    <script src=" http://tjs.sjs.sinajs.cn/open/api/js/wb.js?appkey=2427422566" type="text/javascript"
        charset="utf-8"></script>
    <script>
        $(document).ready(function () {
            $("#sinaLogin").click(function () {
                WB2.login(function (data) {
                    var isLogin = WB2.checkLogin();
                    if (isLogin) {
                        WB2.anyWhere(function (W) {
                            W.parseCMD("/users/show", { "screen_name": "oolier" }, function (sResult, bStatus) {
                                alert(sResult);
                            }, {
                                method: 'post'
                            });
                        });
                    }
                });
            });

            //加微博
            WB2.anyWhere(function (W) {
                W.widget.followButton({
                    'nick_name': 'oolier',
                    'id': "wb_follow_btn"
                });
            });


            //发表微博
            WB2.anyWhere(function (W) {
                W.widget.publish({
                    'id': 'publish',
                    default_text: ""
                });
            });
        });

        
    </script>
</head>
<body>
    <div class="content">
        <div class="logo">
            <h2 style="color: White;">
                登录平台</h2>
            <span id="wb_follow_btn"></span>
        </div>
        <div class="top">
            <a href="javascript:;" id="publish">发表微博</a>@RenderSection("tophh", false)
        </div>
        <div class="center">
            <div class="ll">
                <h4>
                    用合作网站帐号登录</h4>
                <a id="sinaLogin" class="sina" href="javascript:void(0)"><span>新浪微博</span></a> <a
                    class="qq" href="/qq?type=login"><span>QQ登录</span></a> <a class="qqweibo" href=""><span>
                        腾讯微博</span></a> <a class="renren" href=""><span>人人网</span></a>
            </div>
            <div class="lc">
                @RenderBody()
            </div>
            <div style="clear: both;">
            </div>
        </div>
        <div class="bottom">
        </div>
    </div>
    <div style="display: none;" id="backtotop" class="totop">
        <a href="javascript:void(0);">返回</a></div>
    <div id="footer">
        <p id="footer-p">
            Copyright &copy; 2011 olier.cn, All Rights Reserved.
        </p>
    </div>
</body>
</html>
